package com.x86.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.x86.domain.Computer;
import com.x86.domain.ComputerVO;
import com.x86.domain.DayDetail;
import org.apache.ibatis.annotations.Mapper;import java.util.List;

/**
 * @author 风亦未止
 * @date 2022/4/14 12:59
 */
@Mapper
public interface ComputerMapper extends BaseMapper<Computer> {
    /**
     * 获取所有数据
     *
     * @return
     */
    List<ComputerVO> getAll();

    /**
     * 获取7天内设备数
     * @return
     */
    Integer getComListBy7day();

    /**
     * 一天的条数
     * @return
     */
   List<DayDetail> getDayDetail();
}